package br.com.ufpr.sgp.components;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

public class MenuItemPanel extends Panel {
    private static final long serialVersionUID = -5267338513654306745L;

    public MenuItemPanel(final String id, final MenuItem mi) {
        super(id);
        setRenderBodyOnly(true);

        final BookmarkablePageLink<Void> lnk = new BookmarkablePageLink<Void>("lnk", mi.getClazz());
        lnk.add(new Label("lnkLabel", mi.getLnkLabel()).setRenderBodyOnly(true));
        add(lnk);
    }

}
